package com.geek.framework.study.validate.service;

import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

@Service
@Validated
public class ValidateService {

  /**
   * {@link hibernate-validator-6.2.0.Final.jar#ValidationMessages.properties
   * javax.validation.constraints.NotBlank.message = must not be blank}
   */
  public @NotBlank String getMessage(@NotBlank String message) {
    return message;
  }
}
